package htmlAnalyze 
{
	import htmlAnalyze.htmlObject.*;
	import utils.Analyzer;
	/**
	 * ...
	 * @author FireKnight
	 */
	public class HtmlAnalyzer 
	{
		private var document:HTMLDocument;
		public function HtmlAnalyzer(s:*) 
		{
			document = new HTMLDocument(s);
		}
		
		public function getDivById(s:String):HTMLDivElement
		{
			var arr:Array = document.getElementById(s);
			trace("getDivById "+s+" arr length=" + arr.length );
			var _content:HTMLDivElement = new HTMLDivElement(arr[0]);
			return _content;
		}
		
		public function getPByClassName(s:String):HTMLParagraphElement
		{
			var arr:Array = document.getElementsByClassName(s);
			trace("getPByClassName "+s+" arr length=" + arr.length );
			
			//trace("_content="+_content);
			//Analyzer.start(arr[0]);
			var _content:HTMLParagraphElement = new HTMLParagraphElement(arr[0]);
			return _content;
		}
		
	}

}